package com.itheima.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.dto.IndexPageDTO;
import com.itheima.pojo.YddArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.AllCateVo;
import com.itheima.vo.ArticleVo;
import com.itheima.vo.HotArticleVo;
import com.itheima.vo.YddArticleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TrainingL
 * @since 2023-05-13
 */
public interface YddArticleMapper extends BaseMapper<YddArticle> {

    IPage<ArticleVo> pageList(Page<ArticleVo> voPage);

    List<ArticleVo> recommend();

    IPage<ArticleVo> indexList(Page<ArticleVo> voPage,  @Param("dto") IndexPageDTO dto);

    List<AllCateVo> cateCount();

    List<HotArticleVo> hotCount();
}
